<template>
  <div>
    <div v-test="obj">自定义指令学习</div>
  </div>
</template>

<script>
export default {
  name: "directive1",
  data() {
    return {
      obj: {
        name: "dj",
        age: 24
      }
    };
  },
  methods: {
    update() {
      this.obj.age++;
    }
  }
};
</script>